package chen.nf.converter.impl;

import chen.nf.converter.Converter;

/**
 * @Author czl
 * @Date 2024-05-07
 */
public class BooleanConverter implements Converter {
    @Override
    public boolean supports(Class<?> type) {
        return type.equals(Boolean.class) || type.equals(Boolean.TYPE);
    }

    @Override
    public Object converter(String param) {
        return Boolean.valueOf(param);
    }
}
